<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>菜鸟教程(runoob.com)</title>
    <style>
        img.ex1 {
            position: absolute;
            bottom: 0px;
        }

        img.ex2 {
            position: relative;
            bottom: -100px;
        }
    </style>
</head>

<body>
    <img class="ex1" src="https://www.runoob.com/try/demo_source/logocss.gif" width="95" height="84">
    <h1>This is a heading</h1>
    <img class="ex2" src="https://www.runoob.com/try/demo_source/logocss.gif" width="95" height="84">
</body>

</html>